
using AutoMapper;
using Yozeev.BusinessLogic;
using Yozeev.BusinessLogic.Dtos;

namespace Yozeev.BusinessLogic.Mapper
{

	/// <summary>
    /// 配置Route的AutoMapper
    /// </summary>
	internal static class RouteMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap <Route,RouteListDto>();
            configuration.CreateMap <RouteListDto,Route>();

            configuration.CreateMap <RouteEditDto,Route>();
            configuration.CreateMap <Route,RouteEditDto>();

        }
	}
}
